Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Implement Vim key bindings. #272

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jnk22
Copy link

@jnk22 jnk22 commented Dec 13, 2022

Hi, first of all, thank you for this addon! I have been using it for many years now.

I recently searched for a possibility to control the NoScript permissions menu with Vim key bindings (i.e. h,j,k,l) instead of arrow keys.

As this is not possible yet, I have implemented a solution.
Are you generally open to have this merged upstream so other users can benefit from this as well?

I could only find issue #219 that seems related to this PR. Though I believe there might actually be some more users that could find this key binding useful.


If you are open to this PR, there might be a few changes still required, that's why i marked this as WIP for now.

As this implementation tries to mimic the native radio button movement, it can be different for only a few cases (e.g. when on the "Custom" button or in private mode).
I think this should be approached by either adjusting the new key bindings some more, merging both to the exact same behavior (with ArrowLeft and ArrowRight cases added), or ideally both.

Maybe there is even a better way to just have a setting that maps ArrowLeft/ArrowRight to KeyH/KeyL? I could not find one though.

I have only tested this on Firefox 107/108 so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant